package ooday02.practise;

public class Doctor extends Person{
    private String title;
    public Doctor(){

    }

    public Doctor(String name ,int age,String address,String title){
        super(name, age, address);
        this.title=title;
    }

    @Override
    public void eat() {
        super.eat();
    }

    @Override
    public void sleep() {
        super.sleep();
    }

    @Override
    public void play() {
        super.play();
    }

    public void operate(String name){
        System.out.println(super.getName()+"医生正为"+name+"手术");
    }
}
